import request from '@/utils/request'

export function findByPage(query) {
  return request({
    url: '/room/findBy',
    method: 'post',
    params:query //表单数据
  })
}
  export function deleteRoom(roomId) {
    return request({
      url: '/room/deleteById',
      method: 'get',
      params:{"roomId":roomId}//form
    })
  }
  export function addRoom(data) {
    return request({
      url: '/room/add',
      method: 'post',
      data//json
    })
  }
  
  export function updateRoom(data) {
    return request({
      url: '/room/update',
      method: 'post',
      data//json
    })
  }

  export function findType() {
    return request({
      url: '/room/findType',
      method: 'post'
    })
  }

  export function findRoomList() {
    return request({
      url: '/room/findRoomList',
      method: 'get'
    })
  }
  
  
  